#!/bin/bash
#
# gnome-shell wrapper script to include a non-standard gschemas directory.
#

SYS_DATADIR=/usr/share
ALT_DATADIR=$SYS_DATADIR/gnome-shell/gsettings-desktop-schemas

# Using XDG_DATA_DIRS, since gnome-shell searches these paths for schemas (in order):
if [ -e "$ALT_DATADIR" ]; then
  export XDG_DATA_DIRS=$ALT_DATADIR:$SYS_DATADIR:$XDG_DATA_DIRS
fi

exec /usr/bin/gnome-shell-bin "$@"
